package com.example.myapplication;

import android.os.Bundle;
import android.widget.GridView;

import androidx.appcompat.app.AppCompatActivity;

import com.example.myapplication.R;
public class MainActivity3 extends AppCompatActivity {
    private GridView mGridView;
    private MyAdapter mAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        mGridView = (GridView)findViewById(R.id.gridView1);
        mAdapter = new MyAdapter(this);
        mGridView.setAdapter(mAdapter);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.demo7);
    }
}
